{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">筛选框</h3>
    </div>
    <div class="panel-body">
        <form class="form-horizontal" method="post" class="post" action="{:url('office/employee_position/index')}">
          <div class="form-group">
            <label for="inputEmail3" class="col-md-2 control-label">是否某事情</label>
            <div class="col-md-9">
                <label class="radio-inline">
                  <input type="radio" name="is_sth" id="inlineRadio1" value="0" > 否
                </label>
                <label class="radio-inline">
                  <input type="radio" name="employee_is_sth" id="inlineRadio2" value="1" >是
                </label>
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-md-2 control-label">某物数量</label>
            <div class="col-md-9">
              <input type="text" name='employee_sth_num' class="form-control" id="inputPassword3" placeholder="number">
            </div>
          </div>
          <div class="form-group">
            <label for="inputEmail3" class="col-md-2 control-label">状态</label>
            <div class="col-md-9">
              <select name="employee_static" class="form-control">
                <option value='' >--请选择--</option>
                <option value='1' >正常</option>
                <option value='2' >借调</option>
                <option value='3' >休假</option>
                <option value='4' >其他</option>
              </select>
            </div>
          </div>
          <div class="form-group">
            <div class="col-md-offset-2 col-md-9">
              <p>
                    <button type="submit" class="btn btn-success ">搜  索  <span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
                    <button type="submit" class="btn btn-primary ">清  空   <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button>
                    <!-- <a class="btn btn-primary" href="{:url('office/employee_position/index_position')}" class='btn'>职位工程师-雇员信息  <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></a> -->
                    <a class="btn btn-primary" href="{:url('office/employee_position/create')}" class='btn'>雇员职位工程师分配  <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></a>
              </p>
            </div>
          </div>
        </form>
      </div>
  </div>
  <div class="panel panel-default  panel-info">
    <div class="panel-heading">
      <h3 class="panel-title text-center">雇员-职位工程师信息列表（{$countall}）</h3>
    </div>
    <div class="panel-body">
      <div class="table-responsive">
        <table class="table table-striped .table-bordered  table-hover">
          <tr>
            <th class="">序号</td>
            <th class="">雇员_编号</td>
            <th class="">雇员_名称</td>
            <th class="">雇员_状态</td>
            <th class="">
              职位工程师信息
              <div class="row">
                  <div class="col-md-2">序号</div>
                  <div class="col-md-3">职位工程师_编号</div>
                  <div class="col-md-4">职位工程师_名称</div>
                  <div class="col-md-3">职位工程师_状态</div>
              </div>
            </td>
            <th class="">操作</td>
          </tr>
          {volist name="employee_list" id="employee" key="a"}
          <tr>
            <td class="">{$a}</td>
            <td class="" >{$employee.code}</td>
            <td class="" >{$employee.title}</td>
            <td class="" >{$employee.static}</td>
            <td class="">
              {volist name="employee.position" id="position" }
                <div class="row">
                  <div class="col-md-2">{$i}</div>
                  <div class="col-md-2">{$position.code}</div>
                  <div class="col-md-5">{$position.title}</div>
                  <div class="col-md-3">{$position.static}</div>
                </div>
              {/volist}
            </td>
            <td class="">
              <a href="{:url('office/employee_position/read','id='.$employee.id)}"><span class="glyphicon glyphicon-list" aria-hidden="true"></span></a>
              <a href="{:url('office/employee_position/edit','id='.$employee.id)}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </td>
          </tr>
        {/volist}  
        </table>
          <div class="text-center"><p></p></div>
      </div>
    </div>   
  </div>
</div>